import {Image, StyleSheet, View, Text, TouchableOpacity, TextInput} from 'react-native';
import {Stack, useRouter} from "expo-router";
import { scaleSize } from "@/utils/screenSize"
import AntDesign from '@expo/vector-icons/AntDesign';
import { Ionicons } from '@expo/vector-icons';
import {useEffect} from "react";

export default function settingScreen() {

    const router = useRouter();

    useEffect(() => {
        // goAbout();
        // goPrivacyAgreement();
    });


    return (
        <View style={{ height: "100%", backgroundColor: "#F7F7F7" }}>
            <Stack.Screen
                options={{
                    title: '发布消息墙', // 设置屏幕标题
                    headerStyle: {
                        backgroundColor: '#f7f7f7', // 设置标题栏的背景颜色
                    },
                    headerShadowVisible: false, // 隐藏底部阴影和边框
                    headerBackTitleVisible: false,
                    headerTintColor: "#333",
                    headerLeft: () => (
                        <TouchableOpacity onPress={() => router.back()}>
                            <AntDesign name="left" size={19} color="#333" />
                            {/*<Ionicons name="arrow-back" size={30} color="#fff" style={{ paddingLeft: 15 }} />*/}
                        </TouchableOpacity>
                    ),
                }}
            />
            <View style={styles.pubileNewContainer}>
                <View style={styles.inpt}>
                    <TextInput multiline={true} placeholder="请输入消息墙信息" />
                </View>
                <TouchableOpacity>
                    <View style={styles.ok}>
                        <Text style={styles.okText}>发布</Text>
                    </View>
                </TouchableOpacity>
            </View>

        </View>

    );
}

const styles = StyleSheet.create({
    inpt: {
        height: 300,
    },
    pubileNewContainer: {
        padding: 12,
    },
    ok: {
        width: "100%",
        height: 38,
        backgroundColor: "#EC6138",
        flexDirection: "row",
        justifyContent:"center",
        alignItems: "center",
        borderRadius: 19,
    },
    okText: {
        color: "#fff",
    },
});
